﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;
using AdapterLayer;


namespace BLLayer
{
	public static class BLQuote
	{
		internal static LoanCalculationService.Objects.Quote getQuoteByID(int pQuoteID)
		{
			return QuoteAdapter.getQuoteByID(pQuoteID);
		}

		internal static int updateQuote(int pQuoteID, int pCustomerID, string pPrptyType, decimal pPrptySize, int pPrptyYearBuilt, string pPrptyAddressLine1, string pPrptyAddressLine2, string pPrptySuburb, string pPrptyState, int pPrptyPostcode, decimal pPrptyValue, decimal pLoanAmount, int pLoanTerm, decimal pLoanIntrest, string pLoanInsurance, decimal pLoanMRepayment, DateTime pQuoteDate, out string pResultQuoteNumber)
		{
			return QuoteAdapter.updateQuote(pQuoteID,
			  pCustomerID,
			  pPrptyType,
			  pPrptySize,
			  pPrptyYearBuilt,
			  pPrptyAddressLine1,
			  pPrptyAddressLine2,
			  pPrptySuburb,
			  pPrptyState,
			  pPrptyPostcode,
			  pPrptyValue,
			  pLoanAmount,
			  pLoanTerm,
			  pLoanIntrest,
			  pLoanInsurance,
			  pLoanMRepayment,
			  pQuoteDate, 
			  out pResultQuoteNumber);
		}
	}
}
